from django.urls import path
from . import views

app_name = 'books'

urlpatterns = [
    path('', views.book_list, name='book_list'),
    path('<int:pk>/', views.book_detail, name='book_detail'),
    path('borrow/<int:pk>/', views.borrow_book, name='borrow_book'),
    path('return/<int:pk>/', views.return_book, name='return_book'),
    path('search/', views.search_books, name='search_books'),
    path('my-books/', views.my_books, name='my_books'),
    path('import-export/', views.import_export, name='import_export'),
    path('export/books/', views.export_books, name='export_books'),
    path('export/records/', views.export_records, name='export_records'),
    path('import/data/', views.import_data, name='import_data'),
    path('register/', views.register, name='register'),
    path('login/', views.custom_login, name='custom_login'),
    path('logout/', views.custom_logout, name='custom_logout'),
]
